package domain;

import java.awt.Point;
import java.util.ArrayList;

public class Print {
	private Tablero tablero;
	private ArrayList<String> fila;
	
	public Print(Tablero tablero){
		this.tablero = tablero;
		this.fila = new ArrayList<String>();
	}
	
	public void mostrarEnPantalla(){
		int size = this.tablero.getSize();
		for (int x = 0; x<= size; x++){
			for (int y = 0; y<= size; y++){
				Point point = new Point(x, y);
				ObjetoEnTablero obj = this.tablero.getElem(point);
				fila.add(obj.getInformacion());
			}
			System.out.println(fila);
			fila.clear();
		}
	}
}
